package model

import "time"

type SysAdminLoginLog struct {
	ID        uint      `gorm:"primaryKey;column:id"`
	AdminID   uint      `gorm:"column:admin_id"`
	Token     string    `gorm:"column:token"`
	ExpiresAt time.Time `gorm:"column:expires_at"`
	UserAgent string    `gorm:"column:user_agent"`
	Referer   string    `gorm:"column:referer"`
	IP        string    `gorm:"column:ip"`
	CreatedAt time.Time `gorm:"column:created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at"`
}

func (SysAdminLoginLog) TableName() string {
	return "sys_admin_login_log"
}
